鐵人賽 DevOps Submodule DevOps 
git clone git@github.com:exsky/ironman2021.git
cd ironman2021
ls -al
git submodule 來描述,在 ironman2021 目錄下,引入子模組。git submodule add git@github.com:rita0124/daradish.git daradish
tree 看看整個目錄及檔案的結構tree
zsh: command not found: tree
command not found? 那不就是內部或外部命令、可執行的程式或批次檔
可惡,跟防火牆一樣很難入侵
那因為之前沒裝過 tree,所以出現了 command not found...裝起來就好了
brew install tree
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
(略)
 
docker imagesdocker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
你如果看到這段話,表示,Docker 的執行環境還沒運作起來;從 Spotlight 喚醒他吧!
docker images
REPOSITORY          TAG       IMAGE ID       CREATED        SIZE
docker101tutorial   latest    3a7a7c117231   23 hours ago   28.3MB
alpine/git          latest    b8f176fa3f0d   3 months ago   25.1MB
docker rmidocker rmi docker101tutorial

docker pullrita0124/daradish 這個東西daradish (大蘿蔔網站) 乍看就是一個靜態網頁 
Docker Hub 上的 Apache
 
 
 
docker rundocker image inspect httpd:latest
docker run 命令的詳細用法,可以參考官方文件 
/usr/local/apache2/htdocs
docker run -d --name my-apache-app -p 8080:80 -v "$PWD"/daradish:/usr/local/apache2/htdocs/ httpd:latest
dc8155a04c737eff45ea9ff19160557f8e8709a3bb9a3e6a9362ec8c59909c22
-d: 當成 Deamon 跑在背景-name: 幫容器貼上名字-p: 串接 Host 機器 port 至 容器本身的 port-v: 掛載檔案、目錄或是裝置